<template>
  <div>
    <h3> 使用.sync进行组件之间的通信 </h3>
    {{ userName }}
    <br />
    {{ count }}
    <child :name.sync="userName" :count.sync="count"></child>
  </div>
</template>

<script>
import Child from './child.vue'

export default {
  data () {
    return {
      userName: 'fuzujian',
      count: 0
    }
  },
  components: {
    Child,
  }
}
</script>

<style lang="stylus" scoped>

</style>
